﻿using Soundteller.Audio.Repositories.Interfaces;
using Soundteller.Audio.Model.Interfaces;

namespace Soundteller.Audio.Repositories
{
    public class BeatRepository : MemoryRepositoryBase, IBeatRepository
    {
        public BeatRepository(IMemoryContext context)
            : base(context)
        {
        }

        public double? Get()
        {
            return Context.CurrentBeat;
        }

        public void Update(double beat)
        {
            Context.CurrentBeat = beat;
        }
    }
}